package com.frame.platform.user;

import com.frame.database.PageResult;
import com.frame.pageform.*;
import com.frame.pageform.annotation.Login;
import com.frame.util.Pagination;

@Login
public class OnUserPage extends DataPageForm{

	private String userName;
	
	static{
		setForward("/frame/platform/user/onUserList.jsp");
	}
	
	public String execute() throws Exception {
		PageResult ps= new UserDao().getOnUserList(getUserName(),getPageSize_(), getPageNum());
		setResultList_(ps.getList());
//		Pagination pageing=new Pagination("/platform/user/UserManagePage.page","",ps.getPageSize(),ps.getPageNo(),ps.getPageCount(),getResultList_().size());
//		setPagination(pageing);
		return forward();
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

    @Override
    public boolean toUpdate() throws Exception {
        // TODO Auto-generated method stub
        return false;
    }

    @Override
    public String show() throws Exception {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public String toDel() throws Exception {
        // TODO Auto-generated method stub
        return null;
    }
	
}
